<template>
  <view>
    <!-- <u-navbar :is-back="true" :is-fixed="true" title="黑名单详情"></u-navbar> -->
    <free-nav-bar showBack title="黑名单详情"></free-nav-bar>
    <view class="py-3 pl-3 pr-3 lineHight-2 font-14">
      <view style="font-weight: 700;">企业名称：{{ enterpriseName }}</view>
      <view style="font-weight: 700;">公用品牌名称：{{ publicBrandName }}</view>
      <view style="font-weight: 700;">产品名称：{{ productName }}</view>
      <view style="font-weight: 700;">负责人：{{ legalRepresentative }}</view>
      <view style="font-weight: 700;">手机号：{{ phone }}</view>
      <view style="font-weight: 700;">拉黑原因：{{ enterprisesReason }}</view>
      <view style="font-weight: 700;">发布时间：{{ createTime }}</view>
    </view>
  </view>
</template>

<script>
import $H from "@/common/free-lib/request.js";
import freeNavBar from "@/components/free-ui/free-nav-bar.vue";
export default {
  components: {
    freeNavBar,
  },
  data() {
    return {
      enterpriseName:undefined,
      publicBrandName:undefined,
      productName:undefined,
      legalRepresentative:undefined,
      phone:undefined,
      enterprisesReason:undefined,
      createTime:undefined
    };
  },
  onLoad(option) {
    this.getBlackInfo(option.id);
  },
  methods: {
    getBlackInfo(id) {
      $H.get(
        "/agriculture/blacklist/queryById",
        {
          id,
        },
        {}
      ).then((res) => {
        this.enterpriseName = res.result.enterpriseName;
        this.publicBrandName = res.result.publicBrandName;
        this.productName = res.result.productName;
        this.legalRepresentative = res.result.legalRepresentative;
        this.phone = res.result.phone;
        this.enterprisesReason = res.result.enterprisesReason;
        this.createTime = res.result.createTime;
      });
     
    },
  },
};
</script>

<style>
</style>